import { IOptViewAbility } from '../ability';
import { IOptViewStore } from '../store';
import { IDEViewController } from './i-de-view-controller';

/**
 * 选项操作视图控制器基类
 *
 * @export
 * @interface IOptViewController
 * @extends {IViewController<S, A>}
 * @template S
 * @template A
 */
export interface IOptViewController<
	S extends IOptViewStore,
	A extends IOptViewAbility
> extends IDEViewController<S, A> {
	/**
	 * 确认
	 *
	 * @memberof IOptViewController
	 */
	confirm(): void;

	/**
	 * 取消
	 *
	 * @memberof IOptViewController
	 */
	cancel(): void;
}
